home *** CD-ROM | disk | FTP | other *** search
- #pragma once
- #include <AppleTalk.h>
- #include <LDialogBox.h>
- #include <LListener.h>
- #include <LStdControl.h>
- #include <LCaption.h>
- #include <LEditField.h>
- #include <LListBox.h>
- #include "NetLister.h"
- #include "LServerActions.h"
-
- typedef AddrBlock ATAddress;
-
- class LServerChooser : public LDialogBox,
- public LListener, public LPeriodical {
- public:
- static LServerChooser* CreateServerChooserStream(LStream *inStream);
-
- LServerChooser();
- LServerChooser(SWindowInfo &inWindowInfo);
- LServerChooser(ResIDT inWINDid, Uint32 inAttributes,
- LCommander *inSuperCommander);
- LServerChooser(LStream *inStream);
- virtual ~LServerChooser();
-
- virtual void ListenToMessage(MessageT inMessage, void *ioParam);
- virtual void DoSetupServerChooser();
- virtual void DoSetupZoneList();
- virtual void RefreshZoneList();
- virtual void DoSetupServerList();
- virtual void RefreshServerList();
- virtual LServerActions *DoOKHit();
-
- virtual void SpendTime(const EventRecord &inMacEvent);
- private:
- LListBox *mZonesList;
- LListBox *mServersList;
- LStdButton *mOKButton;
- LStdButton *mCancelButton;
-
- ZoneElem *zoneList;
- NBPElem *serverList;
- short numZones;
- short numServers;
-
- Str32 localZone;
- Str32 selectedZone;
- Str255 serverName;
-
- int mZoneCounter, mServerCounter;
-
- };
-
- void FindServerAddress(Str32 name, Str32 zone, ATAddress *addr);
-